package com.dubbo.demo.service.impl;


import com.dubbo.demo.entity.User;
import com.dubbo.demo.service.TestService;

/**
 * RestDubbo接口必须标示path，不然启动报错
 * @author liufl
 *
 * 2017年7月25日
 */
public class TestServiceImpl implements TestService{

	public User testSayDubbo() {
		System.out.println("---Dubbo----服务被调用----------");
		return new User(456l, "Dubbo");
	}

	public String say(String name) {
		System.out.println("----DubboSay---服务被调用----------");
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(name+" DubboSay:Hello!!!!!");
		return stringBuffer.toString();
	}
	
}
